package com.itlong.cloud.noncore.commons;

import com.itlong.cloud.POJO.PO.SysCodePO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <desc>
 *      数据字典业务处理暴露接口
 * </desc>
 *
 * @createDate 2017/10/18
 */
@FeignClient(name = "non-core-service")
public interface IDataDictionaryServiceClient {
    /**
     * <desc>
     *      在数据字典中根据类型获取值和名称
     * </desc>
     * @param codeType 类型
     * @return
     * @author zhangs
     * @createDate 2017/10/18
     */
    @PostMapping(path = "/setting/getDataDictionary")
    List<SysCodePO> getDataDictionary(@RequestParam("codeType") String codeType) throws Exception;
}
